#ifndef __I2C_OLED_H
#define __I2C_OLED_H

#include "sys.h"
#include "delay.h"


#define OLED_ADDRESS 0x78


void HardWare_I2C_Init(void);
void I2C_WriteByte(uint8_t addr,uint8_t data);
void WriteCmd(unsigned char I2C_Command);
void WriteData(unsigned char I2C_Data);
void OLED_Init(void);
void OLED_SetPos(unsigned char x,unsigned char y);
void OLED_Fill(int xs , int ys , int xe , int ye ,unsigned char Fill_Data);
void OLED_CLS(void);
void OLED_ShowStr(unsigned char x,unsigned char y,unsigned char ch[],unsigned char TextSize);

void OLED_ReFresh(void);
void OLED_ShowStr_toGram(unsigned char x,unsigned char y,unsigned char ch[],unsigned char TextSize);
void OLED_DrawPoint(u8 x,u8 y,u8 t);
void OLED_DrawLine(char x1,char y1,char x2,char y2,char mode);
#endif
